inherited frmBaseDialogMultiEmps: TfrmBaseDialogMultiEmps
  Left = 377
  Top = 227
  Caption = #22810#20154#36873#25321
  ClientHeight = 467
  ClientWidth = 474
  Color = 16773345
  DesignSize = (
    474
    467)
  PixelsPerInch = 96
  TextHeight = 12
  object Label2: TLabel [0]
    Left = 24
    Top = 22
    Width = 24
    Height = 12
    Caption = #37096#38376
  end
  object Label3: TLabel [1]
    Left = 24
    Top = 50
    Width = 24
    Height = 12
    Caption = #32452#21035
  end
  object Bevel1: TBevel [2]
    Left = 193
    Top = 0
    Width = 5
    Height = 467
    Align = alRight
  end
  object lblSelectCount: TLabel [3]
    Left = 76
    Top = 78
    Width = 99
    Height = 12
    AutoSize = False
    Caption = #20154#25968#65306'0/0'
    Transparent = True
  end
  object btnCancel1: TRzToolbarButton [4]
    Left = 26
    Top = 402
    Width = 117
    Height = 22
    Caption = #21462#28040
    Glyph.Data = {
      36040000424D3604000000000000360000002800000010000000100000000100
      2000000000000004000000000000000000000000000000000000FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0000008400FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF0000008400FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0000008400FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF0000008400FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00848484000000FF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF0000008400FFFF
      FF00FFFFFF00FFFFFF00000084000000FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000
      8400FFFFFF00848484000000FF000000FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000
      FF0000008400000084000000FF00FFFFFF00FFFFFF00FFFFFF00840000008400
      00008400000084000000840000008400000084000000840000000000FF000000
      FF000000FF000000FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0084848400000084000000
      FF000000FF0000008400FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF008400000084000000FFFFFF00840000000000FF000000FF000000FF00FFFF
      FF000000FF000000FF0000008400FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF000000FF000000FF0000008400FFFFFF00FFFFFF0084000000FFFF
      FF008400000084000000FFFFFF008400000084000000FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF000000FF0000008400FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00}
    OnClick = btnCancel1Click
    HotNumGlyphs = 0
  end
  object btnOK1: TRzToolbarButton [5]
    Left = 26
    Top = 432
    Width = 117
    Height = 22
    Caption = #30830#23450
    Glyph.Data = {
      36040000424D3604000000000000360000002800000010000000100000000100
      2000000000000004000000000000000000000000000000000000FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00008400000084000000840000FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF0000840000008400000084000000840000FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00008400000084000000840000FFFFFF000084000000840000FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000084
      00000084000000840000FFFFFF00FFFFFF00FFFFFF000084000000840000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000840000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0000840000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000084
      0000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000840000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00840000008400
      000084000000840000008400000084000000840000008400000084000000FFFF
      FF00FFFFFF0000840000FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF0000840000FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF008400000084000000FFFFFF008400000084000000FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF0000840000FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0000840000FFFFFF0084000000FFFF
      FF008400000084000000FFFFFF008400000084000000FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0084000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00}
    OnClick = btnOK1Click
    HotNumGlyphs = 0
  end
  object RzToolbarButton1: TRzToolbarButton [6]
    Left = 26
    Top = 370
    Width = 117
    Height = 22
    Caption = #21453#36873
    Glyph.Data = {
      36040000424D3604000000000000360000002800000010000000100000000100
      2000000000000004000000000000000000000000000000000000FF00FF00FF00
      FF00FF00FF00FF00FF00FF00FF00FF00FF00000000000000000000000000FF00
      FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
      FF00FF00FF00FF00FF00FF00FF00008C000000AD000000AD000000AD0000008C
      000000000000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
      FF00FF00FF00FF00FF000000000000BD000000BD000000BD000000BD000000BD
      0000008C0000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
      FF00FF00FF00FF00FF0000AD000000BD000000BD000000BD000000BD000000BD
      000000BD000000000000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
      FF00000000000000000000BD000000BD000000BD000000BD000000BD000000BD
      0000000000000000000000000000FF00FF00FF00FF00FF00FF00FF00FF006331
      00009C3100009C31000000DE000000BD000000AD000000AD000000AD00000000
      BD000000DE000000DE000000DE000000BD0000000000FF00FF0000000000CE31
      0000CE310000CE3100000000000000BD000000BD0000008C0000000000000000
      FF000000FF000000FF000000FF000000FF000000DE00FF00FF009C310000CE31
      0000CE310000CE310000CE3100000000000000DE000000DE00000000DE000000
      FF000000FF000000FF000000FF000000FF000000FF0000000000CE310000CE31
      0000CE310000CE310000CE3100009C310000CE31000000000000000000000000
      FF000000DE000000FF000000FF000000DE000000FF0000000000FF310000CE31
      00009C3100009C3100009C31000063310000CE3100000000000000CEFF00009C
      FF00000000000000DE000000DE000000FF000000FF000000000000000000CE31
      0000CE3100006331000063310000CE310000FF31000000FFFF0000FFFF0000FF
      FF0000CEFF000000FF000000FF000000FF000000FF00FF00FF00FF00FF000000
      0000FF310000FF310000FF3100000000000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF00000000000000FF0000000000FF00FF00FF00FF00FF00FF00FF00
      FF00FF00FF00FF00FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000CE
      FF0000FFFF0000000000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
      FF00FF00FF00FF00FF0031FFFF0000FFFF0000CEFF0000CEFF0000CEFF00009C
      FF0000FFFF0000000000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
      FF00FF00FF00FF00FF000000000000FFFF0000FFFF00009CFF00009CFF0000FF
      FF0031FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
      FF00FF00FF00FF00FF00FF00FF000000000031FFFF0031FFFF0031FFFF000000
      0000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00}
    OnClick = RzToolbarButton1Click
    HotNumGlyphs = 0
  end
  inherited btnOK: TBitBtn
    Left = -50
    Top = 406
    Width = 122
    Height = 0
    Visible = False
  end
  inherited btnCancel: TBitBtn
    Left = -50
    Top = 372
    Width = 122
    Height = 0
    Visible = False
  end
  object MainDataGrid: TcxGrid
    Left = 198
    Top = 0
    Width = 276
    Height = 467
    Align = alRight
    TabOrder = 2
    object MainDataGridDBTableView: TcxGridDBTableView
      NavigatorButtons.ConfirmDelete = False
      DataController.DataSource = dsSelectY
      DataController.Summary.DefaultGroupSummaryItems = <>
      DataController.Summary.FooterSummaryItems = <
        item
          Kind = skCount
          FieldName = 'ISSelected'
          Column = MainDataGridDBTableViewISSelected
        end>
      DataController.Summary.SummaryGroups = <>
      OptionsBehavior.IncSearch = True
      OptionsCustomize.ColumnsQuickCustomization = True
      OptionsData.Appending = True
      OptionsData.Deleting = False
      OptionsData.Inserting = False
      OptionsView.Footer = True
      OptionsView.GroupByBox = False
      OptionsView.Indicator = True
      Styles.Inactive = cxStyle3
      Styles.IncSearch = cxStyle3
      Styles.Footer = cxStyle2
      Styles.Header = cxStyle1
      Styles.Indicator = cxStyle3
      object MainDataGridDBTableViewISSelected: TcxGridDBColumn
        DataBinding.FieldName = 'ISSelected'
        Width = 53
      end
      object MainDataGridDBTableViewEmpID: TcxGridDBColumn
        DataBinding.FieldName = 'EmpID'
        Options.Editing = False
        Width = 72
      end
      object MainDataGridDBTableViewEmpName: TcxGridDBColumn
        DataBinding.FieldName = 'EmpName'
        Options.Editing = False
        Width = 116
      end
    end
    object MainDataGridLevel1: TcxGridLevel
      GridView = MainDataGridDBTableView
    end
  end
  object chkALLSelect: TCheckBox
    Left = 18
    Top = 74
    Width = 53
    Height = 17
    Caption = #20840#36873
    TabOrder = 3
    OnClick = chkALLSelectClick
  end
  object cmbDeptID: TcxLookupComboBox
    Left = 54
    Top = 18
    Properties.DropDownWidth = 200
    Properties.KeyFieldNames = 'ED_DeptID'
    Properties.ListColumns = <
      item
        FieldName = 'ED_DeptNM'
      end
      item
        FieldName = 'ED_DeptID'
      end>
    Properties.ListOptions.ShowHeader = False
    Properties.ListSource = dsDept
    Properties.OnEditValueChanged = cmbDeptIDPropertiesEditValueChanged
    Style.BorderStyle = ebsFlat
    TabOrder = 4
    Width = 124
  end
  object cmbGroupID: TcxLookupComboBox
    Left = 54
    Top = 48
    Properties.DropDownWidth = 200
    Properties.KeyFieldNames = 'EG_GroupID'
    Properties.ListColumns = <
      item
        FieldName = 'EG_GroupNM'
      end>
    Properties.ListOptions.ShowHeader = False
    Properties.ListSource = dsGroup
    Properties.OnEditValueChanged = cmbGroupIDPropertiesEditValueChanged
    Style.BorderStyle = ebsFlat
    TabOrder = 5
    Width = 124
  end
  object cxStyleRepository1: TcxStyleRepository
    Left = 1074
    Top = 220
    PixelsPerInch = 96
    object cxStyle1: TcxStyle
      AssignedValues = [svColor, svFont, svTextColor]
      Color = clActiveCaption
      Font.Charset = ANSI_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = [fsBold]
      TextColor = clWhite
    end
    object cxStyle2: TcxStyle
      AssignedValues = [svColor, svFont]
      Color = clInfoBk
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
    end
    object cxStyle3: TcxStyle
      AssignedValues = [svColor]
      Color = 16709579
    end
  end
  object qyTmp: TADOQuery
    Connection = frmDataModule.ADOCon
    Parameters = <>
    Left = 310
    Top = 262
  end
  object qyDept: TADOQuery
    Connection = frmDataModule.ADOCon
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    Parameters = <>
    SQL.Strings = (
      'SELECT  ED_DeptID , ED_DeptNM FROM      HR_BS_Dept ')
    Left = 412
    Top = 110
    object qyDeptED_DeptID: TStringField
      DisplayLabel = #37096#38376#32534#21495
      DisplayWidth = 6
      FieldName = 'ED_DeptID'
      Size = 6
    end
    object qyDeptED_DeptNM: TWideStringField
      DisplayLabel = #37096#38376#21517#31216
      DisplayWidth = 12
      FieldName = 'ED_DeptNM'
      Size = 12
    end
  end
  object dsDept: TDataSource
    DataSet = qyDept
    Left = 412
    Top = 160
  end
  object qySelectY: TADOQuery
    Connection = frmDataModule.ADOCon
    CursorType = ctStatic
    AfterOpen = qySelectYAfterOpen
    AfterPost = qySelectYAfterPost
    Parameters = <
      item
        Name = 'UserID'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 20
        Value = Null
      end
      item
        Name = 'FormName'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 200
        Value = Null
      end>
    SQL.Strings = (
      'SELECT * FROM SY_MuiltEmpsSelected'
      'where UserID=:UserID AND FormName=:FormName')
    Left = 308
    Top = 138
    object qySelectYUserID: TStringField
      FieldName = 'UserID'
    end
    object qySelectYFormName: TStringField
      FieldName = 'FormName'
      Size = 200
    end
    object qySelectYEmpID: TStringField
      DisplayLabel = #24037#21495
      FieldName = 'EmpID'
      Size = 8
    end
    object qySelectYEmpName: TWideStringField
      DisplayLabel = #22995#21517
      FieldName = 'EmpName'
    end
    object qySelectYISSelected: TBooleanField
      DisplayLabel = #36873#25321
      FieldName = 'ISSelected'
    end
  end
  object dsSelectY: TDataSource
    DataSet = qySelectY
    Left = 308
    Top = 188
  end
  object dsGroup: TDataSource
    DataSet = qyGroup
    Left = 412
    Top = 264
  end
  object qySelectFromEmp: TADOQuery
    Tag = 1
    Connection = frmDataModule.ADOCon
    Parameters = <>
    SQL.Strings = (
      
        'DECLARE @UserID VARCHAR(20), @FormName VARCHAR(200),@DeptID VARC' +
        'HAR(6),@GroupID VARCHAR(6)'
      'SET @UserID='#39'ADMIN'#39
      'SET @FormName='#39'fmCK_ReqHolidayMultiNew'#39
      'SET @DeptID='#39'D01'#39
      'SET @GroupID='#39'%'#39
      ''
      
        'DELETE SY_MuiltEmpsSelected WHERE UserID=@UserID AND FormName=@F' +
        'ormName'
      
        'INSERT INTO SY_MuiltEmpsSelected (UserID , FormName , EmpID , Em' +
        'pName ,ISSelected )'
      'SELECT @UserID,@FormName, EM_EmployeeID , EM_Name ,1'
      'FROM HR_EP_EmpMaster '
      
        'WHERE  EM_DeptID LIKE @DeptID AND ISNULL(EM_GroupID,'#39#39') LIKE @Gr' +
        'oupID AND (EM_DimissionDate IS NULL) AND EM_EmployeeID NOT IN (S' +
        'ELECT EmpID FROM HR_EmpSelect_Y WHERE UserID=@UserID AND FormNam' +
        'e=@FormName)')
    Left = 660
    Top = 16
  end
  object qyGroup: TADOQuery
    Connection = frmDataModule.ADOCon
    Parameters = <>
    SQL.Strings = (
      'SELECT  EG_GroupID , EG_GroupNM FROM      HR_BS_Group ')
    Left = 412
    Top = 220
    object qyGroupEG_GroupID: TStringField
      FieldName = 'EG_GroupID'
      Size = 6
    end
    object qyGroupEG_GroupNM: TWideStringField
      FieldName = 'EG_GroupNM'
    end
  end
end
